﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WelCome.aspx.cs" Inherits="WelCome" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            font-size: 30pt;
        }
    </style>
    <script>
var t = null;
    t = setTimeout(time,1000);//開始运行
    function time()
    {
       clearTimeout(t);//清除定时器
       dt = new Date();
       var h=dt.getHours();//获取时
       var m=dt.getMinutes();//获取分
       var s=dt.getSeconds();//获取秒
       document.getElementById("showTime").innerHTML =  "如今的时间为："+h+"时"+m+"分"+s+"秒";
       t = setTimeout(time,1000); //设定定时器，循环运行     
    } 

</script>
</head>
<body style="font-weight: 700; font-size: 50pt">
    <form id="form1" runat="server">
   <div style=" width: 500px; margin: 100px 250px; text-align: center; border: 1px #ddd solid; line-height: 60px; font-weight: bolder; background: #f6f6f6">
    
       <span class="style1">欢迎您登录本系统！</span>
       <p><label id="showTime" style="font-size: 15pt"></lable></p>
  </div>
    </form>
</body>
</html>
